package com.biz.primus.ms.commodity.dao.po;


import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.Data;

import javax.persistence.*;

/**
 * 关联商品项
 *
 * @author david-liu
 * @date 2016年08月18日
 * @reviewer jun.liu
 * @see
 */
@Data
@Entity
@Table(name = "pro_product_cascade_item")
public class ProductCascadeItem extends BaseEntity {

    private static final long serialVersionUID = 8613934904603530000L;

    /**
     * 商品ID
     */
    @JoinColumn(name = "product_id")
    @OneToOne(fetch = FetchType.LAZY)
    private Product product;

    /**
     * 关联商品ID
     */
    @ManyToOne
    @JoinColumn(name = "product_cascade_id")
    private ProductCascade productCascade;

    /**
     * 纵向条件对象, 示例 颜色: 1
     */
    @Column
    private String ver;

    /**
     * 横向条件对象, 示例 酒精度: 52
     */
    @Column
    private String her;

    /**
     *
     */
    @Column(length = 50)
    private String value;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public ProductCascade getProductCascade() {
        return productCascade;
    }

    public void setProductCascade(ProductCascade productCascade) {
        this.productCascade = productCascade;
    }

    public String getHer() {
        return her;
    }

    public void setHer(String her) {
        this.her = her;
    }

    public String getVer() {
        return ver;
    }

    public void setVer(String ver) {
        this.ver = ver;
    }
}
